/*
 *@Author: 张楚
 *@Date: 2021-08-16 11:17:41
 *@Description: 我已查阅
*/
import 'package:flutter/material.dart';
import 'package:totaldemo/project/official_detail/widget/TabViewItem_Widget.dart';
import 'package:totaldemo/project/official_detail/widget/official_untils.dart';

class FinishLookPage extends StatefulWidget {
  const FinishLookPage({Key key}) : super(key: key);
  @override
  _FinishLookPageState createState() => _FinishLookPageState();
}

class _FinishLookPageState extends State<FinishLookPage> {
  @override
  Widget build(BuildContext context) {
    return SingleChildScrollView(
      child: Column(
        children: [
          //topbanner
          Banner(),
          //item
          TabViewItemWidget(
            title: 'ddddd',
            urgencyState: '3',
            documentOffice: '国务院',
            createTime: '2020-3-35',
            channel: '1',
            isShowPublishState: true,
            publishState: 2,
          ),
          TabViewItemWidget(
            title: 'ddddd',
            urgencyState: '3',
            documentOffice: '国务院',
            createTime: '2020-3-35',
            channel: '1',
            isShowPublishState: true,
            publishState: 3,
          ),
        ],
      ),
    );
  }

  Widget Banner() {
    return Container(
      margin: EdgeInsets.only(right: 15, left: 15, top: 10),
      child: Row(
        mainAxisAlignment: MainAxisAlignment.spaceAround,
        // crossAxisAlignment: CrossAxisAlignment,
        children: [
          //下拉框
          Padding(
            padding: const EdgeInsets.only(right: 20),
            child: GestureDetector(
              behavior: HitTestBehavior.opaque,
              onTap: () {
                print('dd');
              },
              child: Text(
                '全部',
                style: TextStyle(fontSize: 16),
              ),
            ),
          ),

          // 搜索框
          Expanded(
              child:
                  OfficialUntils.seachBar(title: '请输入任2务名称', function: () {})),

          //时间选择
          GestureDetector(
            child: Padding(
              padding: const EdgeInsets.only(left: 20),
              child: Icon(
                Icons.timer_outlined,
                size: 25,
                color: Color(0xff1D268E),
              ),
            ),
          )
        ],
      ),
    );
  }
}

class SortCondition {
  String name;
  bool isSelected;

  SortCondition({
    this.name,
    this.isSelected,
  });
}
